package com.alibaba.yinan.domain.common.event;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEventPublisher;

/**
 * @ClassName EventPublisher
 * @Author mengke
 * @create 2025/8/4 02:28
 * @Description
 */
@Slf4j
@RequiredArgsConstructor
public class EventPublisher {

    private final ApplicationEventPublisher applicationEventPublisher;

    public void publish(BaseEvent<?> event) {
        applicationEventPublisher.publishEvent(event);
    }
}
